package cl.agrosuper.checklist.entities;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import cl.agrosuper.entities.base.BaseAbstractElemento;

/**
 * @version 1.0
 * @created 22-jul-2014 14:42:48
 */
@Entity
@Table(name = "sucursal")
@SequenceGenerator(name = "SEQ_SUCURSAL_HACCP", sequenceName = "SEQ_SUCURSAL_HACCP", allocationSize = 1, initialValue = 1)
public class Sucursal extends BaseAbstractElemento implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7884741885396359298L;
	private String llave;
	private String nombre;

	public Sucursal(){
		super();
	}
	
	@Id
	@GeneratedValue(generator = "SEQ_SUCURSAL_HACCP", strategy = GenerationType.SEQUENCE)
	@Override
	public Long getId() {
		return super.getId();
	}
	
	public String getLlave() {
		return llave;
	}

	public void setLlave(String llave) {
		this.llave = llave;
	}

	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

}